package com.cn.service;

import java.util.List;

import com.cn.backstage.entity.member_entity;
import com.cn.dao.backstage_member_dao;
public class backstage_member_contlr {
	private backstage_member_dao member;
	public backstage_member_contlr(){
		
		member = new backstage_member_dao();
	}
	
	public List<member_entity> getmember(){
		List<member_entity> list =  member.getmember();
		return list;
	}
	public int updatemember_email(String phone,String email){
		return member.updatemember_email(phone, email);
	}
	public int updatemember_yue(String phone,double num){
		return member.updatemember_yue(phone, num);
	}
	public int addmember(String name,String phone,String email){
		return member.addmember(name, phone, email);
	}
	public int deletemember(String phone){
		return member.deletemember(phone);
	}
	public List<member_entity> selectmember(String name){
		List<member_entity> list =  member.selectmember(name);
		return list;
	}
}
